package com.imay.live.view.dialog;

import android.os.Bundle;

import com.imay.live.R;

/**
 * Created by jeaman on 2017/5/16.
 */

public class TipsDialogFragment extends ConfirmDialogFragment {

    public static TipsDialogFragment newInstance(String title, String message, String positive, boolean cancelable) {
        TipsDialogFragment instance = new TipsDialogFragment();
        Bundle bundle = getBundle(title, message, positive, null);
        bundle.putBoolean(EXTRA_NAME_CANCELABLE, cancelable);
        instance.setArguments(bundle);
        return instance;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_tips;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        mTitleTv = $(R.id.tips_tv_title);
        mMessageTv = $(R.id.tips_tv_message);
        mPositiveBtn = $(R.id.tips_btn_positive);
        initData();
    }
}
